﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="Daily_Report.aspx.vb" Inherits="I_PORT.Daily_Report" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<style type="text/css">
    td.locked, th.locked {
position:relative;    
left:expression((this.parentElement.parentElement.parentElement.parentElement.scrollLeft-2)+'px');
}   
</style>
<script type="text/javascript" language="javascript">
        function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}</script>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="height: 5px;">
                                <img src="../Image/space.gif" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 220px;">
                                <asp:Label ID="lbt" runat="server" SkinID="lbtxt" Text="DATE :"></asp:Label>&nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox ID="txtTIme" runat="server"  Width="45px" ></asp:TextBox>&nbsp;
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate">
                 </asp:CalendarExtender>
                 <asp:MaskedEditExtender ID="MaskedEditExtender22" 
                                                                        runat="server" TargetControlID="txtTIme"
                                                                                                 Mask="99:99" MaskType="Time" 
                                                                        AcceptNegative="Left" CultureAMPMPlaceholder="" 
                                                                        CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                                                                        CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ></asp:MaskedEditExtender>&nbsp;<asp:Button ID="btnSearch"
                                    runat="server" CssClass="ButtonStyle" Text="Search" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" border="0" cellpadding="2" cellspacing="0">
                        <tr>
                           <td align="right"><asp:Label ID="lbDateSHow" runat="server" SkinID="lbtxt" ></asp:Label>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left"><asp:Label ID="Label1" runat="server" SkinID="lbtxt"  Text="Ship Loading" ></asp:Label>&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right">
                            <asp:Panel ID="panelGridItem" runat="server" Width="900px" ScrollBars="Horizontal">
                            <asp:GridView ID="gridItem" Width="100%" DataKeyNames="Booking_no,Product_no" runat="server" SkinID="gridblueNoPage" 
                                    AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:BoundField HeaderText="UNIT"  ItemStyle-CssClass="locked" DataField="Wharf"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT"  ItemStyle-Wrap="false" DataField="Ship" ItemStyle-CssClass="locked"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Product"  ItemStyle-Wrap="false" ItemStyle-CssClass="locked"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Shore"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Third"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Unit"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="BL"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="SL" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Diff"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="PersendDiff"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="E_API"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="E_VIS"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="S_API"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="S_VIS"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                         <asp:TemplateField HeaderText="Acceptance" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtAcceptance" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:BoundField HeaderText="UNIT" DataField="Standard" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="UnitFlow"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Actual" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="DiffFlow"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Berth"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Depart"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="STD"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Total"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="DiffTime"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:TemplateField HeaderText="Demurrage" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtDe" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Pig" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPig" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="FW" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtFW" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Truck" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtTruck" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:BoundField HeaderText="UNIT" DataField="Status" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                    </Columns>
                                </asp:GridView>
                            </asp:Panel>
                                
                            </td>
                        </tr>
                         <tr>
                          <td align="left"><asp:Label ID="Label2" runat="server" SkinID="lbtxt"  Text="Ship Discharging" ></asp:Label>&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right">
                            <asp:Panel ID="panel1" runat="server" Width="900px" ScrollBars="Horizontal">
                            <asp:GridView ID="gridDischarge" Width="100%"  DataKeyNames="Booking_no,Product_no" runat="server" SkinID="gridblueNoPage" 
                                    AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:BoundField HeaderText="UNIT" DataField="Wharf" ItemStyle-CssClass="locked"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Ship"  ItemStyle-Wrap="false" ItemStyle-CssClass="locked"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Product"  ItemStyle-Wrap="false" ItemStyle-CssClass="locked"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Shore"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Third"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Unit"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="BL"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="SL" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Diff"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="E_API" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="E_VIS" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="S_API" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="S_VIS"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                         <asp:TemplateField HeaderText="Check" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtCheck" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:BoundField HeaderText="UNIT" DataField="Standard" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="UnitFlow"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Actual" ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="DiffFlow"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Berth"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Depart"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="STD"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="Total"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:BoundField HeaderText="UNIT" DataField="DiffTime"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                        <asp:TemplateField HeaderText="Demurrage" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtDe" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Pig" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtPig" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="FW" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtFW" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Truck" ItemStyle-Width="40px">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtTruck" runat="server" ></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                        <asp:BoundField HeaderText="UNIT" DataField="Status"  ItemStyle-Wrap="false"  ItemStyle-HorizontalAlign="Center"  />
                                    </Columns>
                                </asp:GridView>
                            </asp:Panel>
                                
                            </td>
                        </tr>
                        <tr>
                           <td>
                             <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                <tr>
                                   <td style="width:260px;" valign="top" align="right"><asp:Label id="lbxfse" runat="server" SkinID="lbtxt" Text="Total time over standard time :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left"><asp:TextBox ID="txtTotal" runat="server" TextMode="MultiLine" Width="90%" Height="50px" ></asp:TextBox></td>
                                </tr>
                                <tr>
                                   <td style="width:260px;" valign="top" align="right"><asp:Label id="Label4" runat="server" SkinID="lbtxt" Text="PTOL's Extra Operations  :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left"><asp:TextBox ID="txtPTOL" runat="server" TextMode="MultiLine" Width="90%" Height="50px" ></asp:TextBox></td>
                                </tr>
                                 <tr>
                                   <td style="width:260px;" valign="top" align="right"><asp:Label id="Label3" runat="server" SkinID="lbtxt" Text="Maintenance's Extra Works :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left"><asp:TextBox ID="txtMain" runat="server" TextMode="MultiLine" Width="90%" Height="50px" ></asp:TextBox></td>
                                </tr>
                                <tr>
                                   <td style="width:260px;" align="right"><asp:Label id="Label5" runat="server" SkinID="lbtxt" Text="Average Wind speed (Knots) :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left"><asp:TextBox ID="txtAver" runat="server" Width="150px" ></asp:TextBox></td>
                                </tr>
                                <tr>
                                   <td style="width:260px;" align="right"><asp:Label id="Label6" runat="server" SkinID="lbtxt" Text="Sea Condition :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left">
                                      <asp:DropDownList ID="ddlChoice" runat="server" SkinID="ddl" >
                                        <asp:ListItem>Slight</asp:ListItem>
                                        <asp:ListItem>Modurate</asp:ListItem>
                                        <asp:ListItem>Rough sea</asp:ListItem>
                                      </asp:DropDownList>
                                   </td>
                                </tr>
                                <tr>
                                   <td style="width:260px;" align="right"><asp:Label id="Label7" runat="server" SkinID="lbtxt" Text="Emergency case :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left"><asp:TextBox ID="txtEmer" runat="server" Width="150px" ></asp:TextBox></td>
                                </tr>
                                <tr>
                                   <td style="width:260px;" align="right"><asp:Label id="Label8" runat="server" SkinID="lbtxt" Text="Oil spill :" ></asp:Label>&nbsp;</td>
                                   <td valign="top" align="left"><asp:TextBox ID="txtOil" runat="server" Width="150px" ></asp:TextBox></td>
                                </tr>
                             </table>
                           </td>
                        </tr>
                        <tr>
                          <td align="right"><asp:Button ID="btnPrint" runat="server" CssClass="ButtonStyle" Text="Print" />&nbsp;</td>
                        </tr>
                         <tr>
                            <td style="height: 5px;">
                                <img src="../Image/space.gif" />
                            </td>
                        </tr>
                    </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
